import request from '@/utils/request'

// 添加端口
export function addPort(data) {
    return request({
        url: '/system/port',
        method: 'POST',
        data: data
    })
}
//删除
export function deletePort(id) {
    return request({
        url: '/system/port/' + id,
        method: 'DELETE',

    })
}
//获取列表
export function getPortList() {
    return request({
        url: '/system/port/list',
        method: 'GET',

    })
}
//执行

export function getPortExec(data) {
    return request({
        url: '/system/port/exec',
        method: 'GET',
        params: data
    })
}
//执行

export function getPortCatLog(data) {
    return request({
        url: '/system/port/catLog',
        method: 'GET',
        params: data
    })
}
//删除log文件
export function delPortLog(data) {
    return request({
        url: '/system/port/deleteLog',
        method: 'GET',
        params: data
    })
}   
//刷新

export function getPortRefresh(data) {
    return request({
        url: '/system/port/refresh',
        method: 'GET',
        params: data
    })
}